package day08;

//字母表
public class Alphabet {
    public static void main(String[] args) {
        Test(6);
    }

    public static void Test(int num) {
        char a = 65;
        for (int i = 1; i <= num; i++) {
            a = (char) (65 + i - 1);
            for(int j=num;j>i;j--){
                System.out.print(" ");
            }
            for (int j = 1; j <= 2 * i - 1; j++) {

                if (j!=1 && j ==(2 * i - 1)/2+1)
                    System.out.print((char)(a + 1));
                else
                    System.out.print(a);
            }
            System.out.println();
        }

    }
}
